package practice1.string;

public class Start {
    public static void main(String[] args) {
        String str = "bot next door";


        boolean b = str.startsWith("boy");
        System.out.println(b);//false

        boolean b1 = str.endsWith("door");
        System.out.println(b1);//true
    }
}
